﻿using System.Collections.Generic;
using System.Web.Mvc;

namespace CloudFranceTriple.WebRole.Models
{
    public static class RightLevel
    {
        public static readonly int NoAccess = 0;
        public static readonly int Reader = 1;
        public static readonly int Author = 2;
        public static readonly int Moderator = 3;

        public static List<SelectListItem> GetRightLevelSelectListItems()
        {
            return new List<SelectListItem>
            {
                new SelectListItem{Value="0",Text=CloudFranceTriple.WebRole.Properties.Resources.SecurityRightLevelNoAccess},
                new SelectListItem{Value="1",Text=CloudFranceTriple.WebRole.Properties.Resources.SecurityRightLevelReader},
                new SelectListItem{Value="2",Text=CloudFranceTriple.WebRole.Properties.Resources.SecurityRightLevelAuthor},
                new SelectListItem{Value="3",Text=CloudFranceTriple.WebRole.Properties.Resources.SecurityRightLevelModerator}
            };             
        }
    }
}
